package collections;
import java.util.*;
public class SetOfInteger {
    public static void main(String[] args){
        Random random =new Random(47);
        Set<Integer> intset = new HashSet<>();
        for(int i=0;i<1000;i++){
            intset.add(random.nextInt(30));
        }
        System.out.println(intset);
    }
}
